package com.erp.warehouse.clouderp_warehouse.service.impl.inventory;

import com.erp.warehouse.clouderp_warehouse.mapper.inventory.InventorySerialMapper;
import com.erp.warehouse.clouderp_warehouse.pojo.inventory.InventorySerial;
import com.erp.warehouse.clouderp_warehouse.service.inventory.InventorySerialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * 2025/11/6 8:58
 * author: 向远洋
 */
@Service
@Transactional
public class InventorySerialServiceImpl implements InventorySerialService {
    @Autowired
    InventorySerialMapper serialMapper;
    @Override
    public boolean addSerialService(List<InventorySerial> serialList, String companyId) {
        return serialMapper.insert(serialList, companyId) == 1;
    }

    @Override
    public List<InventorySerial> getSerailList(Map<String, Object> params) {
        return serialMapper.selectSerialList(params);
    }
}
